﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using database;

namespace Registrar
{
    public partial class Form3 : Form
    {
        Form2 frm;
        public Form3(Form2 frm2)
        {
            InitializeComponent();
            frm = frm2;
            this.Load += new EventHandler(Form3_Load);
        }

        void Form3_Load(object sender, EventArgs e)
        {
            dbase db = new dbase();
            db.connectionDatabase("SELECT * FROM student_profile_tbl WHERE id='"+frm.sendID+"'");

            CrystalReport1 cr1 = new CrystalReport1();
            cr1.SetDataSource(db.data());

            crystalReportViewer1.ReportSource = cr1;
        }
    }
}
